const wrapper = require('../utils/responseWrapper');


const parentId = '1';
const lists = [];
if (parentId.length < 7) {
  for (let i = 1; i < 10; i++) {
    const key = `${parentId}-${i}`;
    lists.push({
      id: key,
      name: `部门${key}`,
      type: 'dept',
      isLeaf: key.length >= 7,
    });
  }
}
module.exports = wrapper(lists);
console.log(JSON.stringify(module.exports));
